<?php
defined('BASEPATH') OR exit('No direct script access allowed');

$route['default_controller'] = 'index/index';

$route['404_override']         = 'home/not_found';
$route['translate_uri_dashes'] = false;

$route['category']              = 'index/category';
$route['product']               = 'index/product';
$route['product/(:num)']        = 'index/product/$1';
$route['product/(:num)/(:num)'] = 'index/product/$1/$2';
$route['product_show/(:num)']   = 'index/product_show/$1';

$route['page/(:num)'] = 'index/page/$1';
$route['brand']       = 'index/page/2';
$route['company']     = 'index/page/1';

$route['about/(:num)'] = 'index/about/$1';
$route['about']        = 'index/about/2';

$route['join']        = 'index/join';
$route['contact']     = 'index/contact';
$route['message_add'] = 'index/message_add';

$route['price'] = 'index/price';

$route['news']               = 'index/news';
$route['news/(:num)']        = 'index/news/$1';
$route['news/(:num)/(:num)'] = 'index/news/$1/$2';
$route['news_show/(:num)']   = 'index/news_show/$1';

$route['aike']               = 'index/aike';
$route['aike/(:num)']        = 'index/aike/$1';
$route['aike/(:num)/(:num)'] = 'index/aike/$1/$2';
$route['aike_show/(:num)']   = 'index/aike_show/$1';

$route['admin'] = 'home/admin_login';

$route['service']        = 'index/service';
$route['service/(:num)'] = 'index/service/$1';
$route['brand/(:num)']   = 'index/brand/$1';
$route['brand']          = 'index/brand';
$route['join']           = 'index/join';
$route['join/(:num)']    = 'index/join/$1';